package com.trkj.dao.wdm;

import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.trkj.pojo.MaritalStatus;

public interface MaritalStatusDAO extends CrudRepository<MaritalStatus, Long>{
	@Query("from MaritalStatus r ")
	public List<MaritalStatus> queryByNaPage(Pageable p);
		
	@Query("from MaritalStatus f where f.marName like?1")
	public List<MaritalStatus> query_By_idorname(String text,Pageable p);
	@Query("select count(f) from MaritalStatus f where f.marName like?1")
	public long count(String string);
}
